package mockup;

import java.io.Serializable;

/**
 * Every class that holds data in the Server
 * should extend this class.
 * @author daniel
 */
public class Mockup implements Serializable  {
	
	public static final int NO_ACTION = 0;		//used when no action should be taken
	
	public static final int CREATE = 101;			//used when the object should be created
	public static final int CHANGE = 102;			//used when the object should be changed
	public static final int DELETE = 103;			//used when the object should be deleted
	
	public static final int GET = 201;			//used when the object should be returned
	
	public static final int GET_CREATED = 211;
	public static final int GET_CHANGED = 212;
	public static final int GET_REMOVED = 213;
	
	public static final int GET_ROOMS = 221;
	public static final int GET_APPOINTMENTS = 222;
	public static final int GET_MEETINGS = 223;
	
	public static final int LOGOUT = 301;

		
	private int state = NO_ACTION;
	private int id;
	private int sessionId;
	
	public Mockup(int id) {
		this.id = id;
	}
	
	public int getSessionId() {
		return sessionId;
	}
	
	public void setSessionId(int sessionId) {
		this.sessionId = sessionId;
	}

	public int getState() {
		return state;
	}
	
	public void setState(int state) {
		this.state = state;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
}
